package com.ruoyi.wuyi.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.wuyi.mapper.WyNongjiInfoMapper;
import com.ruoyi.wuyi.domain.WyNongjiInfo;
import com.ruoyi.wuyi.service.IWyNongjiInfoService;

/**
 * 农机库Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-07-15
 */
@Service
public class WyNongjiInfoServiceImpl implements IWyNongjiInfoService 
{
    @Autowired
    private WyNongjiInfoMapper wyNongjiInfoMapper;

    /**
     * 查询农机库
     * 
     * @param id 农机库主键
     * @return 农机库
     */
    @Override
    public WyNongjiInfo selectWyNongjiInfoById(String id)
    {
        return wyNongjiInfoMapper.selectWyNongjiInfoById(id);
    }

    /**
     * 查询农机库列表
     * 
     * @param wyNongjiInfo 农机库
     * @return 农机库
     */
    @Override
    public List<WyNongjiInfo> selectWyNongjiInfoList(WyNongjiInfo wyNongjiInfo)
    {
        return wyNongjiInfoMapper.selectWyNongjiInfoList(wyNongjiInfo);
    }

    /**
     * 新增农机库
     * 
     * @param wyNongjiInfo 农机库
     * @return 结果
     */
    @Override
    public int insertWyNongjiInfo(WyNongjiInfo wyNongjiInfo)
    {
        return wyNongjiInfoMapper.insertWyNongjiInfo(wyNongjiInfo);
    }

    /**
     * 修改农机库
     * 
     * @param wyNongjiInfo 农机库
     * @return 结果
     */
    @Override
    public int updateWyNongjiInfo(WyNongjiInfo wyNongjiInfo)
    {
        return wyNongjiInfoMapper.updateWyNongjiInfo(wyNongjiInfo);
    }

    /**
     * 批量删除农机库
     * 
     * @param ids 需要删除的农机库主键
     * @return 结果
     */
    @Override
    public int deleteWyNongjiInfoByIds(String[] ids)
    {
        return wyNongjiInfoMapper.deleteWyNongjiInfoByIds(ids);
    }

    /**
     * 删除农机库信息
     * 
     * @param id 农机库主键
     * @return 结果
     */
    @Override
    public int deleteWyNongjiInfoById(String id)
    {
        return wyNongjiInfoMapper.deleteWyNongjiInfoById(id);
    }
}
